# import time
# import redis
# import hashlib
# import requests
# import uuid
# import json
# from typing import Dict,Any, Optional
# from fastapi import HTTPException
# from xml.etree import ElementTree as ET
# from wechatpy.utils import check_signature

# class WechatQRLogin:
#     def __init__(self,app_id:str,secret:str,redis:redis.Redis, token: str):
#         self.app_id = app_id
#         self.secret = secret
#         self.redis = redis
#         # 设置access_token缓存
#         self._access_token = None
#         self._access_token_expires = 0
#         self.token = token

#     # def _get_ass